From: Sebastian Wick Date: Fri, 15 Dec 2023 15:36:47 +0000 (+0100) Subject: lookingGlass: Use Cogl.Pipeline.new to construct new pipelines X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~178 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6b9c04de6e19e69fa97e4bd83de9ebb9cbcbd40b;p=gnome-shell.git lookingGlass: Use Cogl.Pipeline.new to construct new pipelines new Cogl.Pipeline now constructs a GObject via g_object_new and not via cogl_pipeline_new. Construction via g_object_new requires a some construct only parameters so either way, this call doesn't work anymore. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3144 Part-of: --- diff --git a/HACKING.md b/HACKING.md index fe8078446..7672d1f2c 100644 --- a/HACKING.md +++ b/HACKING.md @@ -168,7 +168,7 @@ you to inherit from a type to use it, you can do so: let coglContext = framebuffer.get_context(); let alloc = this.get_allocation_box(); - let pipeline = new Cogl.Pipeline(coglContext); + let pipeline = Cogl.Pipeline.new(coglContext); pipeline.set_color4ub(255, 0, 0, 255); framebuffer.draw_rectangle(pipeline, diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 9f5575f75..b9f8589a3 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -542,7 +542,7 @@ class RedBorderEffect extends Clutter.Effect { let color = new Cogl.Color(); color.init_from_4ub(0xff, 0, 0, 0xc4); - this._pipeline = new Cogl.Pipeline(coglContext); + this._pipeline = Cogl.Pipeline.new(coglContext); this._pipeline.set_color(color); }